package EnterpriseAlgorithm.Stack_Queue.Code.StackWithGetMin;

public class Example {
    public static void main(String[] args) {
        MyStack1 stack1 = new MyStack1();
        MyStack2 stack2 = new MyStack2();
        for (int i = 0; i < 5; i++) {
            stack1.push(i);
            stack2.push(i);
        }
        System.out.println(stack1.pop());
        System.out.println(stack2.pop());
        System.out.println(stack1.getMin());
        System.out.println(stack2.getMin());
    }
}
